package sma.images.slides.client;

import sma.images.slides.client.slider.ImgSlider;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style.Visibility;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class ImagesSliding implements EntryPoint {

	private final String [] imgPathAr = new String[]{
			GWT.getModuleBaseURL() + "/images/mangoImg.jpg", 
			GWT.getModuleBaseURL() + "/images/citronImg.jpg",
			GWT.getModuleBaseURL() + "/images/allFrutsImg.jpg",
			GWT.getModuleBaseURL() + "/images/allFruts2Img.jpg",
			GWT.getModuleBaseURL() + "/images/allFruts3Img.jpg"};
	
	private ImgSlider imgSlider;
	
	/**
	 * This is the entry point method.
	 */
	public void onModuleLoad() {
		imgSlider = new ImgSlider("300px", "400px", imgPathAr);
		RootPanel.get().add(imgSlider);
		DOM.getElementById("loading").getStyle().setVisibility(Visibility.HIDDEN);
	}
}
